﻿using System;

namespace NRank.Benchmark
{
	public static class Benchmark
	{
		private static DateTime startTime;

		public static void Start()
		{
			startTime = DateTime.Now;
			//Console.WriteLine("Benchmark started: {0}", description);
		}

		public static BenchmarkResult Measure(int k, string algorithmName)
		{
			var stopTime = DateTime.Now;

			var timeConsumed = stopTime-startTime;

			//Console.WriteLine("Benchmark: {0} ms", timeConsumed.TotalMilliseconds);
			startTime = stopTime;

			return new BenchmarkResult(k, timeConsumed, 0, 0, algorithmName);
		}
	}
}